package com.reflect;

import java.lang.reflect.Method;
import java.util.ArrayList;

/**
 * 反射的作用：提供一个通用框架，支持保存所有对象的具体信息
 */

public class reflectFuntionDemo2 {
    public static void main(String[] args) throws Exception {
        Student student=new Student("凌毅",18,89.2);
        Teacher teacher=new Teacher("陈爱国",45,1000000);

        MybatisUtil.save(student);
        MybatisUtil.save(teacher);
    //===============Student================
        //name=凌毅
        //age=18
        //grade=89.2
        //===============Teacher================
        //name=陈爱国
        //age=45
        //saary=1000000.0


    }
}
